<?php
namespace app\api\model;


use app\model\Base;

class PigOrder extends Base
{
    public function getPigListFormatAttr($value, $data)
    {
        $arr = explode(',', $data['pig_list']);
        return $arr;
    }

    public function getAddressFormatAttr($value, $data)
    {
//        return '四川省广元市剑阁县普安镇共和村';
        return Base::$pigFarmArray[$data['farm_id']]['address'];
    }
}